package com.zy.springboot.com;

/**
 * @Description: <br/>
 * @return:
 * @throw:
 * @Version: V1.0.0
 */
public final class Const {

    /**
     * <B>构造方法</B><BR>
     */
    private Const() {
    }


    /**
     * Integer类型常量:
     */
    public static final Integer PageConst = 50;
    public static final Integer INT_MINUS_ONE = -1;
    public static final Integer INT_MINUS_TWO = -2;
    public static final Integer INT_ZERO = 0;
    public static final Integer INT_ONE = 1;
    public static final Integer INT_TWO = 2;
    public static final Integer INT_THREE = 3;
    public static final Integer INT_FOUR = 4;
    public static final Integer INT_FIVE = 5;
    public static final Integer INT_SIX = 6;

    public static final Integer INT_ONE_HUNDRED = 100;
    public static final Integer INT_ONE_MILLION = 1000000;

    /**
     * Long类型常量:
     */
    /**
     * 5分钟的毫秒数秒数
     */
    public static final Long LONG_FIVE_MINUTE_MILLIS_LONG = 300000L;
    /**
     * 20分钟的毫秒数秒数
     */
    public static final Long LONG_TWELVE_MINUTE_MILLIS_LONG = 1200000L;


    /**
     * 判断代码：是
     */
    public static final String TRUE = "1";

    /**
     * 判断代码：否
     */
    public static final String FALSE = "0";

    /**
     * 通用字符集编码
     */
    public static final String CHARSET_UTF8 = "UTF-8";

    /**
     * 中文字符集编码
     */
    public static final String CHARSET_CHINESE = "GBK";

    /**
     * 英文字符集编码
     */
    public static final String CHARSET_LATIN = "ISO-8859-1";

    /**
     * 根节点ID
     */
    public static final String ROOT_ID = "root";

    /**
     * NULL字符串
     */
    public static final String NULL = "null";

    /**
     * 日期格式
     */
    public static final String FORMAT_DATE = "yyyy-MM-dd";

    /**
     * 日期时间格式
     */
    public static final String FORMAT_DATETIME = "yyyy-MM-dd HH:mm:ss";

    /**
     * 时间戳格式
     */
    public static final String FORMAT_TIMESTAMP = "yyyy-MM-dd HH:mm:ss.SSS";

    /**
     * JSON成功标记
     */
    public static final String JSON_SUCCESS = "success";

    /**
     * JSON数据
     */
    public static final String JSON_DATA = "data";

    /**
     * JSON数据列表
     */
    public static final String JSON_ROWS = "rows";

    /**
     * JSON总数
     */
    public static final String JSON_TOTAL = "total";

    /**
     * JSON消息文本
     */
    public static final String JSON_MESSAGE = "message";

    public static final String TAG_SYS = "sys";

    public static final String TAG_MST = "mst";

    public static final String TAG_MQ = "mq";

    public static final String TAG_DAT = "dat";

    public static final String TAG_STA = "sta";

    public static final String TAG_INT = "int";

    public static final String[] TAGS = {TAG_SYS, TAG_MST, TAG_MQ, TAG_DAT, TAG_STA, TAG_INT};

    /**
     * Cookie键值：验证键值
     */
    public static final String COOKIE_VALIDATE_KEY = "VALIDATE_KEY";

    /**
     * Cookie键值：验证键值分割符
     */
    public static final String COOKIE_VALIDATE_KEY_SPLIT = "$_";

    /**
     * 请求属性键值：当前项目标识
     */
    public static final String REQ_CUR_TAG = "REQ_CUR_TAG";

    /**
     * 请求属性键值：当前用户标识
     */
    public static final String REQ_CUR_USER_ID = "CUR_USER_ID";

    /**
     * 请求属性键值：当前用户名称
     */
    public static final String REQ_CUR_USER_NAME = "CUR_USER_NAME";

    /**
     * 请求属性键值：当前机构标识
     */
    public static final String REQ_CUR_ORG_ID = "CUR_ORG_ID";

    /**
     * 请求属性键值：当前角色名称
     */
    public static final String REQ_CUR_ROLE_CODE = "CUR_ROLE_CODE";


    public static final String SYS_INIT = "SYS_INIT";

    /*登陆key*/
    public final static String LOGIN_KEY = "login_info";

    /*表格数据逻辑删除*/
    public final static Character TABLE_IS_REMOVE = '1';

    /**
     * redis中存活一天时间
     */
    public final static Integer TIME_TO_LIVE_DAY = 60 * 60 * 24;
    /**
     * redis中存活十五分钟
     */
    public final static Integer TIME_TO_LIVE_FIFTEEN_MINUTE =  60 * 15;
    /**
     * redis中存活五分钟
     */
    public final static Integer TIME_TO_LIVE_FIVE_MINUTE = 60 * 5;
    /**
     * 图片验证码后缀
     */
    public final static String IMAGE_CODE_POSTFIX = "_IMAGE_CODE_POSTFIX";
    /**
     * 手机验证码后缀
     */
    public final static String PHONE_CODE_POSTFIX = "_PHONE_CODE_POSTFIX";
    /**
     * 默认当前页码
     */
    public final static String PAGE = "1";
    /**
     * 默认每页记录数
     */
    public final static String PAGE_RECORD = "10";
    /**
     * 默认登录密码
     */
    public final static String PASSWORD = "123456";
    /**
     * 百度地图API的App-key
     */
    public final static String GAODE_APP_KEY = "2d1393521b52af54e9da56871d4d4c3b";
    /**
     * ios手机图片验证码key
     */
    public final static String IOS_IMAGE_CODE_KEY = "IOS_IMAGE_CODE_KEY_IMAGE_CODE_POSTFIX";

    /**
     * ios手机图片验证码value
     */
    public final static String IOS_IMAGE_CODE_VALUE = "JSYF_IOS_IMAGE_CODE_VALUE";

    /**
     * 安卓手机图片验证码key
     */
    public final static String ANDROID_IMAGE_CODE_KEY = "ANDROID_IMAGE_CODE_KEY_IMAGE_CODE_POSTFIX";

    /**
     * 安卓手机图片验证码value
     */
    public final static String ANDROID_IMAGE_CODE_VALUE = "JSYF_ANDROID_IMAGE_CODE_VALUE";

    /**
     * 短信登录接口秘钥
     */
    public final static String LOGIN_SECRET_KEY = "LOGIN_SECRET_KEY";

    /**
     * 短信模版说明
     */

    /**手机验证码通用模版*/
    public final static String SMS_TEMPLATE_GENERAL_CODE="223097";

    /**用户注册模版*/
    public final static String SMS_TEMPLATE_REGISTER="222956";

    /**认证成功*/
    public final static String SMS_TEMPLATE_AUTHENTICATION="223102";
}
